package main

import (
	"go.uber.org/zap"
	"time"
)

/*
   Author: mahaiyuan
   Date: 2021/3/2 3:39 下午
   Description:
*/

func main() {
	logger, _ := zap.NewProduction()
	defer logger.Sync()

	sugar := logger.Sugar()
	sugar.Infow("failed to fetch URL", "url", "http://www.baidu.com", "backoff", time.Second)
	sugar.Infof("Failed to fetch url: %s", "http://www.baidu.com")
}